package com.example.service;

import com.example.properties.RobotProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RobotServiceImpl implements RobotService{

    @Autowired
    private RobotProperties robotProperties;

    @Override
    public String hello() {
        return "你好，我是:"+robotProperties.getName()+"，版本是:"+robotProperties.getVersion();
    }
}
